import React, { Component } from 'react'
import { IUdModalContentProps } from '../../lib'
import { Pagination } from 'antd'

class TestAddModal extends Component<IUdModalContentProps> {

  componentDidMount() {
    this.props.getHandler(this.getResult)
  }

  render() {
    return (
      <div>
        <h1>测试内容，返回固定内容</h1>
        <Pagination total={200} showSizeChanger={true} showQuickJumper={true}></Pagination>
      </div>
    )
  }

  public getResult = () => {
    return { name: 'qwerq' }
    // return new Promise((resolve, reject) => {
    //   setTimeout(() => {
    //     resolve({ name: 'test add' })
    //   }, 1500);
    // })
  }

}

export default TestAddModal
